import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, Length } from "class-validator";
import sqlCommonColumn from "src/common/sqlCommonColumn";

export class commentDto extends sqlCommonColumn {
     @IsNotEmpty()
     @Length(1,50)
     // @ApiProperty({description:"评论内容"})
     content:string
     
     // @ApiProperty({description:"文章id"})
     @IsNotEmpty()
     Information_id :number

     // @ApiProperty({description:"回复评论id，为空则为根评论"})
     // @IsNotEmpty()
     
     comment_id :number

}